<template>
  <div>
    <el-table :data="accountFundsList"
              style="width: 100%">
      <el-table-column prop="accountFundsId"
                       label="用户资金编号"
                       width="180">
      </el-table-column>
      <el-table-column prop="accountFundsNum"
                       label="余额"
                       width="180">
      </el-table-column>
      <el-table-column prop="accountFundsAccount"
                       label="银行账户"
                       width="180">
      </el-table-column>
      <el-table-column prop="accountFundsDate"
                       label="创建日期/最后一次使用时间"
                       width="180">
      </el-table-column>
      <el-table-column prop="bankId"
                       label="银行ID"
                       width="180">
      </el-table-column>
      <!-- <el-table-column prop="userId"
                       label="用户ID">
      </el-table-column> -->
      <el-table-column prop="userStreamId"
                       label="用户流水ID"
                       width="180">
      </el-table-column>

    </el-table>
  </div>
</template>

<script>
export default {
  data () {
    return {
      accountFundsList: []
    };
  },
  methods: {
    onSubmit () {
      this.$axios.get("accounFunds/" + this.userId).then((resp) => {
        this.accountFundsList = resp.data.data.accountFundsList;
      });

    }
  },
  created () {
    this.userId = JSON.parse(sessionStorage.getItem("userId"));
    this.onSubmit();
  }
};
</script>